minor modification to search module