newMap() is invoked only once.