group model rewrite