error with if2