added simple array/arraylist pop.