removed random flag