collect() method