removed rewriter call