changed order of factor_U and removed unused factor_L