added better removeElement