now we are correclty removing elements from map