further attempts to get the output working correctly