added search methods for model.cpp