proc refactors.