output outside of loop