added eraser function