implement remove()