add functions for refactoring maps