trying to fix double-reference