race leader as a function