rewrite with express