check branches