started to implement a recursive function to push partials into one another