added is_referencing() function