make the delete working