remove unnecessary spaces around the list comprehension