Problem with the add function adding the same index
SOme added files