changed inv -> pinv in the non-cache flow for multiple series (so now both flows are the same)