readlines works

updated readlines loop