handled both directions of leaderboard