updated some ancestor queries