format scala note