func calls opti.saving reg. only on recursion call