updated to reflect addition of filter function