dimensions calculation logic change