print layout optimization