added query.distinct