fixes top-word rank naming, changes 0-(n-1) to 1-n