removed extra emit method in struct