introduced matrix magic number for more robust file I/O