chaged the arguments of fmax and fmin to double