erased old code for old map implementation