added while rewrite rule