change code to apply coding rules