added a map clearing function