finished stack and heap