random function removed