compute: traversal updates scope after optimize calls