working on scope emits