debugged influence generation error and removed max_tries parameter requirement