added rank to next lines