generating random data fix