pipeline model works