tried moving branch logic
Revert "tried moving branch logic"

This reverts commit bd6847b522080b6cb069640fc43e8ab21c1c1624.