adjust error code