adding map remove function