params optimization