added clear method