add: integrate optimization