remove element solution