adding if statements