search on min id