functions to use on pdb files