there's no way to get endEmitted to be true in this statement