splitting into branches