made a general output format