totalvar calc fix. RAD fix