circular reference resolution