prims cursor works