Vinay's changes to list iteration in add