add and use nullify() function for future foreign keying