removed obsolete template code