changed to iOS6