made it deterministic; made determinism togglable