fix bug in tour
optimize z4.r1