adding clear method