added iterateInner(), countInner(), contains(), diff()