rewrite groups order