added code to combine data files