implemented remove method