added new code to process MGH and UCF data