added braces to all if statements and made them all look the same