wf can return matrix and plot