fixed robotics logic