fixed problem with the format output ordering