working emit/on