implemented  &  functions. array now reindexed after item removal