removing function/ working on undo