removing location rewriter