fixing datagen to produce points globally