adding ios version method