added clear map function.