changes so it compiles in xcode 6