clear method for model