solutions for matrix results