modify rankCallback