The present disclosure provides methods for re-programming effector T cells to a central memory phenotype comprising culturing the effector T cells with a histone deacetylase inhibitor (HDACi) and IL-21. Further provided are methods of treating cancer comprising administering the central memory T cells.