use duration instead of distance