make forEach a convenience method