minor updated for ranking