fix calculations 3