report search working need to refactor and consolidate