while not 'bonds' in line:
        line = f.readline()
        if 'moleculetype' in line or not line:
            f.seek(pos)
            return bonds