removed use of iOS7 API