working version for ios 7.0