updated runking
New function: category based next