added ranking method