implemented delete for lists