added one more base condition for finding combinations