formatting and output update