fixed the problem

used i too many times