Describe the name resolution algorithm more