declass calculate_columns