So maybe a switch-case wasn't a good idea