cleanup format of output