completing previous commit (hold loop calcuation upgrade scripts)