determinism fixes