few changes made to preprocessing of files