slight rearranging of output