updated in Xcode 4.6 to support iOS6.1