still working on determinism