search space for all the combinations