rewrite commit