remove and clear methods are implemented