determine data version function works. next: ver a dis function. fix output list issue. write discretized list into output file