format and change code