refactored splitFeatureAt into another function and returned functionality to the original method