added fileread code