changed calculation logic