made some code changes while debugging a capacityType error