Refactoring, PDOS tail autotrim