rewrite shares