removed ios7 deprecated method usage