added rank to main activity