added specs for matrix