fixing remove()