added ancestor queries