trying to fix double initialization of map