most recent version of code with data output files