rewrite for github