added logic for robot