layout adjustment and grammar correction