changed calculation