moving rotation to pi