added foreach and for comprehensions