removed duplicated code, updated podspec