bugfix: map was decleared twice