important change to regrank interface, need some more test