whitespace
whitespace
replace SF box systematic functions with common set_branch functions