added 'rewrite' to the example