finish get_pdb_info function