update clear method