added some manipulation functions on maps