deterministic market algorithm
minor updates