Reduced map and filter functions into a list comprehension