removed iOS7 deprecated warnings