changed indenting to be more readable