robot added code of repeat task