add rank to stats for user
fix rank bug