changed to conform to new list comprehension syntax

old syntax was used changes were conversion to new one