wont delete last element