got the heap stuff working