quickref and matrix