quote finder logic improvement