moved clearModels method to be by clear method, clear method now calls clearmodels

reduced redundant code