added clear method for models