add TT.size and use it in PowerDecoder and trap input record