added looping directory to read any file name