centralize "marking for deletion" into a helper function. Pass GVN around to