search changed from json to model