small change to serve error method