refactoring for podspec