check matrices in varying models