did sonar fixes for the map_functions file