format the code properly