Begin of view rewriting