some some corrections to the recurrence solver