add a clear method