error format cleanup