added clear method for collection