creating a remove method