reverted the model so that search will work