removed the random function