new version of p.f.recurrence