starting to tackle giant if statement