auto promomtion of vals in partition function