fix bug in finder function where reduce wasnt being correctly applied