added delete function on lists