variable total calculations plus comments added