improving error format