You forgot i = 0 case