using whitelist instead of blacklist for vertex id replace pattern