added scope to events