update objectiv-c code