resolving references