removed model = "min" argument from function - always min