improved efficiency

rather than appending a list, I have the code find a single value and
then break.