core formatting