preliminary formatting and layout