changed lines to chronological ranks