renamed cons for matrix to ones
resolved merge