move output outside of the transform, also allows us to be able to easily change the output. This closes #12