putting in the if