further improvements to pdf