rewrite gi