cleaned up code.  everything in the heap appears to work correctly