added iterating over elements to test