make naive prims work