read the angle once, instead of for each step of the mode choice loop