print optimization