added search functions to models