using the entities map on the reducer side