word ranking output added