this would be more readable as a dict lookup