bind, erase-remove idiom added