add rank to rating table