minor change in if statement