switching the robot and links around