TT packed
small fixing
fix some function