add erase handling