added indexed insertion into lists