replace OnTickEmit and tick with emit