fixing data matrix