changed the random_hos to arity 3