where is the end of the if?