normalize if statement format