refactored spin flips