add in square matrix macro