first try for templation of the branch type