simplify readLine