made simple search, fixed scope order