clean up spatial spread map code