added list comprehension, check file exists