improved helper for conform query