[PATCH 2/2] don't pass ofilter variable to functions when not needed