helper function for model compliance through resaving