branch length support added