modifying for ios7/64 bit