add var filter function