prepare for model saving