move event send after type definition