fixed bug in add() where model ids were not being mapped to indice, now using add() in side init()