Filter does not modify tuples. This can be done using the map() function (not flatMap). 
map() returns exactly one tuple for each input tuple.