implemented the drop method.