add loop problem