trying to format output correctly