added getrank and modified styles