replaced error path