updated sink to take min of Rhill or param file for secondary