changed order read_last_line