change cal to ranking