updated logs for matrix type.