makes the filtering and filename saving a generic function and parameter
one more down, number of movies per year in nice colors now