condenses large if statement, not unbeatable yet...