some improvement for pdf