prim has only 1-2 entrances