adds map, limits rows to improve performance