added error(), fixing broken error res'