renamed r to robot