initial eraser functionality