make rank work