with if statement