writing and layout