updating rank to output in current folder