modify for ios5