implemented func builder with list comprehension