added Dematerialize and Distinct