changed the model template behavior