process calculations on columns