Update rank.h