changed heap items from instances to pointer, gaining a bunch of performance
and a mysterious heap overflow problem.