better code in outline-manager