adding robot code