renamed the delete function to remove