search result draft
simplify scoping