fixed the delete bug and adding not starting at 0