change return type by error filter