def params optimize