updated median_truth to check for negative numbers