filter update

add check for pub = sub