make ranking and the process button work