basic comparison between real and random data is now done