rewriting views