started new function ranking