update ranking part code