ah, you are right, so you need to use reduce or map+compact