added is ios 5 inline function