updated the style of errors