add functions to access a model