update for ios6+