fix shifting every cycle