moving formatting statements to protected methods