synchonized indexMap as it might be fiddled with by multiple threads