adding iPhone check logic