Using flexibility in P-circuits by Boolean relations