move filter under params
reduce more param passing duplication