everything working for single-pass