changed xmin to 1/nTime