working on read for loop