change laying out strategy and print code