if statement does not want to work