added delete functionality of collections