more efficient relative_best