use cascad expressing for matrix