disaster
refactored populate search helper