rank style

made rank work properly