fixed class to regressor