modify template library