added more model functions