added duplicate slot test handling to compiler.