better compatibal for ios5