trying to get recursiveAdd working