fixed filter, missing return statement