save rank of words on file