re-adding logic gates to prob, adaptive