put a () after collect because (1) it is declared with (), and (2) it has side effect.