paragraph and layout adjustment