added the add at xx index stuff