add model functions for auto generate