- added ability to replace item at specific index