reformatted my code