reduced code for map and treats