making maps concurrent since multiple threads access them