Changed del_element to be more logically strict