add branch function comment