improved pipeline