remove old code artifacts left from testing and running writes in recursion (replaced by passing result dictionary)