remove json header in build rank function