generation of snapshot of data