add show error method