updating deprecated template methods