added edge weight filter