rewrite assignment definition