before using collect and collectors