improved matrix fit