sanitize list and list comprehension