flip the order of the arguments in map to make the definition
marginally prettier