refactor get_heaps