adding rank to flog json