removed unused 'filter' code