updated find query