matrix test  and it works