edit to handle formatted data matrix file