avoid unused argument warning in map_impl