filter and map tested
tested reduce