added template rewrite reference