implemented client-side eraser