rewrite profiles