added date-range features, min doesn't function