still working on lemon project, output type is matrix not tuple