initial work on mtj matrix