addition of an erase operation