modified matricies