fixed indentation and spacing in code