MW for fetching distinct values