updated to work with new version of toOutput