added an erase implementation