unroll code, change spin