add delete map function