replacing string concats with list comprehensions