clean up outlinings limit code