fix w.r.t. label on 2nd trans toXYZ

Also renamed some variables