changing backward compatibility for Xcode