a collapser that makes if statements easier for the compiler