clear new map and initialize new variable