changing read_file, bug to be fixed for the sequential number book keeping