added first part of the delete functionality