removal of elements working