added distinct field parameter