adding rank to products