only need to check if references are nonzero