heap-fun expanded
