added spin flipping