return result immediately when found