implement simple erase function