added scope iterator