try to replace branch with output