anchor.diff:    if(nSplit >= 5) call chr_cast(lnSplit(5),cheby_angle(icheby(iElem)),iErr)
     if(nSplit >= 6) call chr_cast(lnSplit(6),cheby_offset_x(icheby(iElem)),iErr)
     if(nSplit >= 7) call chr_cast(lnSplit(7),cheby_offset_y(icheby(iElem)),iErr)
  -  if(nSplit >= 8) call chr_cast(lnSplit(8),cheby_L(icheby(iElem)),iErr)
  -  if(nSplit >= 9) call chr_cast(lnSplit(9),cheby_I(icheby(iElem)),iErr)
  +  if(nSplit >= 8) call chr_cast(lnSplit(8),cheby_I(icheby(iElem)),iErr)
   
     if(st_debug) then
       call sixin_echoVal("name",    bez(iElem),                                         "CHEBY",iLine)
       call sixin_echoVal("filename",trim(cheby_filename(cheby_itable(icheby(iElem)))),  "CHEBY",iLine)
       if(nSplit >= 3) call sixin_echoVal("r2 [mm]"      , cheby_r2(icheby(iElem)),      "CHEBY",iLine)
       if(nSplit >= 4) call sixin_echoVal("r1 [mm]"      , cheby_r1(icheby(iElem)),      "CHEBY",iLine)
  -    if(nSplit >= 5) call sixin_echoVal("tilt [rad]"   , cheby_angle(icheby(iElem)),   "CHEBY",iLine)
  +    if(nSplit >= 5) call sixin_echoVal("tilt [deg]"   , cheby_angle(icheby(iElem)),   "CHEBY",iLine)
       if(nSplit >= 6) call sixin_echoVal("offset_x [mm]", cheby_offset_x(icheby(iElem)),"CHEBY",iLine)
       if(nSplit >= 7) call sixin_echoVal("offset_y [mm]", cheby_offset_y(icheby(iElem)),"CHEBY",iLine)
  -    if(nSplit >= 8) call sixin_echoVal("L [m]"        , cheby_L(icheby(iElem)),       "CHEBY",iLine)
  -    if(nSplit >= 9) call sixin_echoVal("I [A]"        , cheby_I(icheby(iElem)),       "CHEBY",iLine)
  +    if(nSplit >= 8) call sixin_echoVal("I [A]"        , cheby_I(icheby(iElem)),       "CHEBY",iLine)
     end if
   
   end subroutine cheby_parseInputLine
  
positive.code:         xx = rr * cos_mb(theta)
          yy = rr * sin_mb(theta)
        end if
        
        ! apply kick
        call cheby_getKick( xx, yy, dxp, dyp, cheby_itable(icheby(ix)), brho, betrel )
        ! take into account scaling factor
        dxp=dxp *cheby_scalingFact(icheby(ix))
        dyp=dyp *cheby_scalingFact(icheby(ix))
        
        ! in case cheby has a non-zero angle, rotate kicks
        if (lrotate) then
          ! NB: cheby_angle(icheby(ix)) is the rotation angle of the cheby
  
negative.code:     end if
      lDefI=.false.
  
    else if(inLine(1:1) == "R") then
      ! Read reference radius e-beam in e-lens
      if(nSplit < 3) then
  