use array comprehensions