removes element on delete