edited sentences such that it can read the last data of each line