code for orgnization rank function