i3 rewrite