made it compatible with ios 5.1