update synthetic data function