fixed pdf formatting