fixed bug that made i=2 broken. We needed to rest n