use list comprehension instead of lambda with map