adds clear method