minor cleanup to change detection code