still can't figure out the proper way to handle/schedule all the operations.
it has exponential runtime in the number of iterations. still