refactoring, go for the easy and fast comparisons first