code changes for deal search