filter is working for grade first