created a matrixfix file for the normalize and flatten functions