eliminated compiler errors in read