added new simpler version of processing file