pipeline optimization