refactoring code to get updateBengListed function [DRY]