format the code correctly