cleaned up PDB code