step 4 complete w/ output formatting