improve print trace