changed so returns the instead of null when no matches