added filter method for query builder