updated the printing for nicer formatting