remove test function tset
add function WriteBranchdata