refactors functions in model to create defaults