added initializations for map1 and map2 to correct NPE