better if statement