erase expand functionality