adding functionality to maps