preparing the input for the recursive case