make independent if statements