ATR,refactor