modify for ios7