added store data function