added functions in maps