functions returning strings now return matricies