removing list comprehension for performance.