added distinct value lookup