reworked PrimBox