modifications to output