cleaned the regul class