tpl: updated to conform to recommended styles and practices