update real data function