implement batch operation using pipeline