removed random function extent