getters and setters in iterator