corrected the empty file error