less fatal errors in delete function