updated syntax to remove warnings that come with Xcode 4.6