using list comprehension and updating formatting