added create function, hotfix

A function was mistakenly removed from the model, I have re-added it.