filter with fold and map with fold added