remove map and apply edits