use a switch here - makes it a bit more readable