added distinct to filter