add model functions