optimize completions