change interface of recursion form integer partition