added in begining of randomness