variable name conflict in interface loop