formatted if statements