ranking setting code added