modified basis matrix