loc: generalized the broadcasting