changed return value for filter functions