if statement enhancement