complex: optimize