filter inputs for grid