added thin plus fixed model class bug