can't I pass the robot to my function?