added array_values func to resort array after removing item