added regression-type code