moved map filling into a private function