move constants out to their own place
tentatively commenting out the i, j params

I seriously doubt that we need to keep stateful memos of these indexes ffs