changing back to custom error