transform() more like reference code
add condition number