modify matrix pic