remove element reimpl