i like this pattern better than one line ifs

@burtlo would be proud. i think.