tested rewrite decorator