remove random function