clear method added