indentation fixes

cleaned up code a little