repeated runs of the wrapped code does not give the same result
something doesn't get deallocated correctly and its something to do with the height function.
something doesn't get deallocated correctly and its something to do with the height function.