abstract remove element method