_generate_combinations method