adding rank