removed bug, builds map