syntax fix
heap management