added ability to drop elements from arrays