making use of select instead collect