loss main pipeline