using if statements