remove bossedge, replace with generate function