def getName(fp, fp_names):
    """Determines the new name of a fingerprint in case
    multiple fingerprints with the same name"""
    # check if fp already exists. if yes, add a number
    if fp in fp_names:
        suffix = 2
        tmp_name = fp + "_" + str(suffix)
        while tmp_name in fp_names:
            suffix += 1
            tmp_name = fp + "_" + str(suffix)
        return tmp_name
    else:
        return fp