error check matrices