adding erase mode for curves