fix layout and printing