Switched i++ to add(i,1)