updating addwid code ot use new filterobject function