reimplement remove command