procedural prim construction