error method fixed