Improved text based reading
fixed syntax warning