begin data gen script