fixed recursiveAdd params