tpl yf compile small refactoring