only get branch id when branch id is not set