refine the tcap structure