single line if statements to clean up code