attempt to implement data matrix -- reading not working