fixing datagen interval to seconds