readlines error fixed