added filter for min and max date and min rank