formatted output to match requirements