updates p-in-box