def modify_keepout(laminate, is_adhesive):
    """is this better than other algorithms"""
    for ii, (test, layer) in enumerate(zip(laminate, is_adhesive)):
        if test:
            l = laminate[ii]
            if ii > 0:
                l |= laminate[ii - 1]
            if ii < len(laminate) - 1:
                l |= laminate[ii + 1]
            laminate[ii] = l
    return laminate
