end emit added