         switch progress{
         case -1.0...1.0:
             firstAnimationView.progress =  progress
-            logoImageView.center.y = CGFloat(abs(Int32(scrollView.contentOffset.x + ((scrollView.frame.height / 2 ))))) - logoImageView.frame.height
-            welcomeLabel.center.y = logoImageView.center.y + welcomeLabel.frame.height/3
+            logoImageView.center.y = logoInitialPositionY + scrollView.contentOffset.x
+            welcomeLabel.center.y = welcomeLabelInitialPositionY + scrollView.contentOffset.x
             logoImageView.alpha = 1 - progress
             logoImageView.hidden = false
             welcomeLabel.hidden = false

        case 2.0...3.0:
            thirdAnimationView.progress =  progress - 2
            secondAnimationView.progress = 3 - progress
        case 3.0...5.0:
            thirdAnimationView.progress = 4 - progress
            getStartedButton.frame.origin.y = (scrollView.frame.width*4.2 - scrollView.contentOffset.x)
            //pageControll.frame.origin.y = getStartedButton.frame.origin.y - getStartedButton.frame.height
            pageControll.alpha = (4 - progress)*3
            logoImageView.hidden = true
            welcomeLabel.hidden = true
        default: break
        }
    }

        bgParallaxImageView.frame.origin.x = translatedOffsetX * mountainParallaxRate
    }
    
    override func shouldAutorotate() -> Bool {
        return false
    }
    
    override func supportedInterfaceOrientations() -> Int {
        let device = UIDevice.currentDevice().userInterfaceIdiom
        switch device{
        case .Phone: return UIInterfaceOrientation.Portrait.rawValue
        case .Pad: return UIInterfaceOrientation.LandscapeLeft.rawValue
        default: return UIInterfaceOrientation.Portrait.rawValue
        }
    }
    
}

