edit map functions