refactored randomize in route
fixed gross error