simplify queries;