rewrite spin