1.add AD at printTail, 2.modify auto update