clean up code indentation and spacing