fixed bug where it was returning the first result