working on debugging prims