resolution of warning regarding reference