modify bdtmpl